<template>
    <div>页面1</div>
    <button @click="toNext">下一页</button>
    <button @click="change">修改{{data}}</button>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router'
let router = useRouter()
let data = ref("测试")
let toNext = ()=>{
    router.push({
        name: 'TestToAc2Vue'
    })
}
let change = ()=>{
    data.value+=1123
}
</script>